import Login from './view/user/Login'
import mainNav from './view/Main'
import WXSOrderList from './view/wxs/OrderList'
import WXSCommentList from './view/wxs/CommentList'
import WXSFeedbackList from './view/wxs/FeedbackList'
import WXSParams from './view/wxs/Params'
import SendOrder from './view/wxs/SendOrder'
import Untreated from './view/wxs/Untreated'
import Journal from './view/wxs/Journal'
import OrderStatistics from './view/wxs/OrderQuantityStatistics'
import OrderRepairRate from './view/wxs/OrderRepairRate'
import ReportFormDeal from './view/wxs/ReportFormDeal'
import departmentManage from './view/system/departmentManage'
import User from './view/system/User'

//仓库
import Procurement from './view/warehouse/Procurement'
import Application from './view/warehouse/Application'

//工程师管理
import EngineerManagement from './view/wxs/EngineerManagement'

// 前端
import index from './view/frontEnd/index'
import aboutUs from './view/frontEnd/aboutUs'
import confirmorder from './view/frontEnd/confirmorder'
import queryorder from './view/frontEnd/queryorder'
import selectfault from './view/frontEnd/selectfault'
import webmain from './view/webmain'



module.exports = {
  route_map: [{
      path: '/login',
      component: Login
    },
    {
      path: '/main/',
      component: mainNav,
      children: [{
          //商品采购
          path: 'ck/procurement',
          component: Procurement
        },
        {
          //物料申请
          path: 'ck/apply',
          component: Application
        },
        {
          // 部门管理
          path: 'sys/departmentManage',
          component: departmentManage
        },
        {
          // 员工管理
          path: 'sys/user',
          component: User,
        },
        {
          // 维修师管理
          path: 'wxs/engineerManagement',
          component: EngineerManagement
        },
        {
          // 订单
          path: 'wxs/order',
          component: WXSOrderList
        },
        {
          // 评论
          path: 'wxs/comment',
          component: WXSCommentList
        },
        {
          // 反馈
          path: 'wxs/feedback',
          component: WXSFeedbackList
        },
        {
          // 参数
          path: 'wxs/params',
          component: WXSParams
        },
        {
          // 派单
          path: 'wxs/send-order',
          component: SendOrder
        },
        {
          // 待处理订单
          path: 'wxs/untreated',
          component: Untreated
        },
        {
          // 日志
          path: 'wxs/journal',
          component: Journal
        },
        {
          // 订单量统计
          path: 'wxs/order-statistics',
          component: OrderStatistics
        },
        {
          // 订单返修率
          path: 'wxs/order-repair-rate',
          component: OrderRepairRate
        },
        {
          // 成交订单统计
          path: 'wxs/deal',
          component: ReportFormDeal
        },
      ],
    },
    {
      path: '/web/',
      name: 'webmain',
      component: webmain,
      children: [{
          path: 'index',
          name: 'index',
          component: index
        },
        {
          path: 'confirm',
          name: 'ConfirmOrder',
          component: confirmorder
        },
        {
          path: 'selectfault',
          name: 'selectfault',
          component: selectfault
        },
        {
          path: 'orders',
          name: 'queryOrder',
          component: queryorder
        },
        {
          path: 'about',
          name: 'AboutUs',
          component: aboutUs
        }
      ]
    },
    {
      path: '*',
      redirect: '/main'
    },
  ],
}
